package joindemo.domain.entity;


import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@TableName("comment")
@NoArgsConstructor
@AllArgsConstructor
public class Comment {
    private long id;
    private String content;
    private long rootId;
    private long parentId;
    private long articleId;
    private int likeCount;
    private long userId;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    @TableLogic
    private int status;
}
